<p>
	<?=MHDEV_Sprintf($this->translate->_('online_active_user'), array(
	'%total' => $this->content['total'], 
	'%time' => $this->content['online_time']
	))?>
	<br />
	<span class="online_groups">
		<?=MHDEV_Sprintf($this->translate->_('online_groups'), array(
			'%member' 	=> $this->content['member_count'], 
			'%guests' 	=> $this->content['guest_count'],
			'%details'	=> '<a href="' . $this->url(array('controller' => 'user', 'action' => 'online'), 'user_online', true) . '">' . $this->translate->_('online_details') . '</a>'
		))?>
	</span>
</p>

<p class="online_members">
	<?$i=0;if($this->content['member_count'] >  0):?>
		<?foreach($this->content['member_res']->toArray() AS $result): $i++;?>
			<a class="useronline_<?=$result['role']?>" href="<?=$this->url(array('controller' => 'profile', 'uid' => $result['user_uid']), 'profile', true)?>">
			<?=$this->escape($result['username'])?></a><?if($this->content['member_count'] > $i):?>, <?endif;?>
		<?endforeach;?>
	<?else:?>
		<?=$this->translate->_('online_no_member')?>
	<?endif;?>
</p>